package com.dhl.cloud.controller;

import java.util.Random;

public class Test {

	public static void main(String[] args) {

		Random random = new Random();
		int randomNumber = random.nextInt(6) + 10;
		
		System.out.println("0000000--- "+randomNumber);
		
		String str = "";
		for (int i=0;i<8;i++)
		{
			if (i<randomNumber)
			{
				str += i;
			}
			else if (i==randomNumber)
			{
				
				str += i;
				System.out.println("保存到数据库，然后重新开始---------------"+str);
				randomNumber += random.nextInt(6) + 10;
				System.out.println("111111111---------------"+randomNumber);
				str = "";
			}
		}
		System.out.println("保存到数据库22222，---------------"+str);
	}

}
